package com.jingtai.core.entity.supply;


import com.baomidou.mybatisplus.annotation.TableName;
import com.jingtai.core.entity.BaseEntity;
import com.jingtai.validate.swagger.CApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

import io.swagger.annotations.*;

import java.math.BigDecimal;

import java.util.Date;

/**
 * 供应商向商户发货（商户拿货）订单表
 * 
 * @author sunlaiqian
 * @date 2020-12-02 15:08:10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shop_supply_to_merchants_order")
@ApiModel(value = "供应商向商户发货（商户拿货）订单表", description = "供应商向商户发货（商户拿货）订单表")
public class SupplyToMerchantsOrder  extends BaseEntity implements Serializable {




	/**
	 * 商户ID
	 */
	@CApiModelProperty(value = "商户ID")
	private Long merchantsId;

	/**
	 * 商户收货地址ID
	 */
	@CApiModelProperty(value = "商户收货地址ID")
	private Long merchantsAddressId;

	/**
	 * 供应商ID
	 */
	@CApiModelProperty(value = "供应商ID")
	private Long supplyId;

	/**
	 * 订单号
	 */
	@CApiModelProperty(value = "订单号")
	private String orderCode;

	/**
	 * 商品编码 sku编码
	 */
	@CApiModelProperty(value = "商品编码 sku编码")
	private String goodsCode;

	/**
	 * 数量
	 */
	@CApiModelProperty(value = "数量")
	private Integer goodsSize;

	/**
	 * 单价
	 */
	@CApiModelProperty(value = "单价")
	private BigDecimal unitPrice;

	/**
	 * 总价
	 */
	@CApiModelProperty(value = "总价")
	private Integer totalPrice;

	/**
	 * 运费
	 */
	@CApiModelProperty(value = "运费")
	private BigDecimal freight;

	/**
	 * 运单号
	 */
	@CApiModelProperty(value = "运单号")
	private String courierNumber;

	/**
	 * 运单号单据
	 */
	@CApiModelProperty(value = "运单号单据")
	private String courierDocuments;

	/**
	 * 订单状态 10.待发货 20.已发货 30.已完成 40.已取消  50无效订单
	 */
	@CApiModelProperty(value = "订单状态 10.待发货 20.已发货 30.已完成 40.已取消  50无效订单")
	private Integer orderState;

}
